<?php
//dezend by http://www.yunlu99.com/ QQ:270656184
defined('BASEPATH') || exit('No direct script access allowed');
class Intro extends MY_Controller
{
	public function __construct()
	{
		parent::__construct();
		$this->verify_user();
	}

	public function index()
	{
		$d['intro_people'] = intval($this->db->where('user_id', $this->user['id'])->count_all_results('intro'));
		$where['user_id'] = $this->user['id'];
		$result = $this->result_list(array('table' => 'intro', 'where' => $where, 'url' => 'intro/index', 'order' => 'add_time desc', 'per_page' => 10));
		$d['page'] = $result['page'];
		$d['list'] = $result['list'];
		$this->show(array('header', 'user_left', 'intro', 'footer'), $d);
	}
}

?>
